import request from '@/utils/request'

// 用户头像上传
export function uploadAvatar(data) {
  return request({
    url: '/business/auth/user/updateAvatar',
    method: 'put',
    data: data
  })
}

// 更新用户信息
export function updateUserInfo(data) {
  return request({
    url: '/business/auth/user/updateUserInfo',
    method: 'put',
    data: data
  })
}

// 用户更新自己的密码
export function updatePwd(data) {
  return request({
    url: '/business/auth/user/updatePwd',
    method: 'put',
    data: data
  })
}

